package com.cskaoyan.javase.oop3._1interface._1basic.impl;

import com.cskaoyan.javase.oop3._1interface._1basic.ITest;

/**
 * 接口的ITest的实现类
 *
 * @since 09:35
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class ITestImpl implements ITest {
    @Override
    public void test() {
        System.out.println("itest实现类");
    }

    @Override
    public int test2() {
        return 0;
    }

    public ITestImpl() {
        // super(); 指向Object的无参构造
    }
}
class ASon extends A implements ITest{
    @Override
    public void test() {

    }

    @Override
    public int test2() {
        return 0;
    }

    public ASon() {
        // super() 指向A类的无参构造
    }
}
class A{}